package com.alex;

import com.anythink.core.api.ATCustomVideo;
import com.bytedance.sdk.openadsdk.TTFeedAd;

public class AlexGromoreCustomVideo implements ATCustomVideo {
    TTFeedAd.CustomizeVideo customizeVideo;

    public AlexGromoreCustomVideo(TTFeedAd.CustomizeVideo customizeVideo) {
        this.customizeVideo = customizeVideo;
    }

    @Override
    public String getVideoUrl() {
        if (customizeVideo != null) {
            return customizeVideo.getVideoUrl();
        }
        return null;
    }

    @Override
    public void reportVideoStart() {
        if (customizeVideo != null) {
            customizeVideo.reportVideoStart();
        }
    }

    @Override
    public void reportVideoPause(long currentPosition) {
        if (customizeVideo != null) {
            customizeVideo.reportVideoPause(currentPosition);
        }
    }

    @Override
    public void reportVideoContinue(long currentPosition) {
        if (customizeVideo != null) {
            customizeVideo.reportVideoContinue(currentPosition);
        }
    }

    @Override
    public void reportVideoFinish() {
        if (customizeVideo != null) {
            customizeVideo.reportVideoFinish();
        }
    }

    @Override
    public void reportVideoBreak(long currentPosition) {
        if (customizeVideo != null) {
            customizeVideo.reportVideoBreak(currentPosition);
        }
    }

    @Override
    public void reportVideoAutoStart() {
        if (customizeVideo != null) {
            customizeVideo.reportVideoAutoStart();
        }
    }

    @Override
    public void reportVideoStartError(int var1, int var2) {
        if (customizeVideo != null) {
            customizeVideo.reportVideoStartError(var1, var2);
        }
    }

    @Override
    public void reportVideoError(long var1, int var3, int var4) {
        if (customizeVideo != null) {
            customizeVideo.reportVideoError(var1, var3, var4);
        }
    }
}
